#!/usr/bin/env bash



# download
# http://maven.apache.org/download.cgi


# 解压
tar -zxvf /deploy/maven/apache-maven-3.6.3-bin.tar.gz

# 配置环境变量
cat >> /etc/profile <<"EOF"
export MAVEN_HOME=/deploy/maven/apache-maven-3.6.3
export PATH=$MAVEN_HOME/bin:$PATH
EOF

cat /etc/profile

# 刷新
source /etc/profile
mvn -v

